<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>index</title>
</head>
<body>
    <h1>hello world!</h1>
    welcome <span th:text="${session.user.getLoginName}"></span> !

    <form th:action="@{/logout}" method="post">
        <input type="submit" value="退出" />
    </form>
</body>
</html>